﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace PS.Engine.Helper
{
    internal class StandardBasicEffect : BasicEffect
    {
        public StandardBasicEffect(GraphicsDevice graphicsDevice)
            : base(graphicsDevice)
        {
            this.VertexColorEnabled = true;
            this.Projection = Matrix.CreateOrthographicOffCenter
               (0, GraphicsDevice.Viewport.Width,     // left, right
                GraphicsDevice.Viewport.Height, 0,    // bottom, top
                0, 1);
        }

        public StandardBasicEffect(BasicEffect effect)
            : base(effect)
        {
        }
    }
}
